#!/bin/bash

CRONTASK_DIR=$HOME/.crontask

if [ -d $CRONTASK_DIR ]; then
  rm -rf $CRONTASK_DIR
fi
mkdir $CRONTASK_DIR

echo PATH=$PATH > $HOME/.pathenv

pushd $(dirname $0) > /dev/null 2>&1

cp schedule-*.sh     $CRONTASK_DIR/

crontab cronfile

popd > /dev/null 2>&1
